package pers.vic.util.excel.other.demo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import pers.vic.util.excel.other.ExcelTplField;


public class ScoreModel {

	/**
	 * 姓名
	 */
	private String name;
	
	/**
	 * 学号
	 */
	private String no;
	
	/**
	 * 分数1
	 */
	private BigDecimal score1;
	/**
	 * 分数2
	 */
	private BigDecimal score2;
	/**
	 * 分数3
	 */
	private BigDecimal score3;
	/**
	 * 总分
	 */
	private BigDecimal total;
	
	public static List<ExcelTplField> exportExcelTpl(){
		List<ExcelTplField> tplHeadArray = new ArrayList<ExcelTplField>();
		tplHeadArray.add(new ExcelTplField("name", "姓名"));
		tplHeadArray.add(new ExcelTplField("no", "学号"));
		tplHeadArray.add( new ExcelTplField("score1", "分数1"));
		tplHeadArray.add( new ExcelTplField("score2", "分数2"));
		tplHeadArray.add( new ExcelTplField("score3", "分数3"));
		tplHeadArray.add( new ExcelTplField("total", "总分"));
        return tplHeadArray;
	}
	
	
	public ScoreModel() {
		super();
	}
	public ScoreModel(String name, String no, BigDecimal score1, BigDecimal score2, BigDecimal score3,
			BigDecimal total) {
		super();
		this.name = name;
		this.no = no;
		this.score1 = score1;
		this.score2 = score2;
		this.score3 = score3;
		this.total = total;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public BigDecimal getScore1() {
		return score1;
	}
	public void setScore1(BigDecimal score1) {
		this.score1 = score1;
	}
	public BigDecimal getScore2() {
		return score2;
	}
	public void setScore2(BigDecimal score2) {
		this.score2 = score2;
	}
	public BigDecimal getScore3() {
		return score3;
	}
	public void setScore3(BigDecimal score3) {
		this.score3 = score3;
	}
	public BigDecimal getTotal() {
		return total;
	}
	public void setTotal(BigDecimal total) {
		this.total = total;
	}


	@Override
	public String toString() {
		return " [姓名=" + name + ", 学号=" + no + ", 分数1=" + score1 + ", 份数2=" + score2 + ", 分数3="
				+ score3 + ", 总分=" + total + "]";
	}
	
	
	
	
}
